package com.examples;

public class InterestCalc {

	public static int INTEREST_RATE = 10;

	public InterestCalc() {

	}

	public InterestCalc(int prevUser) {

		this.prevUser = prevUser;

	}

	private int numberOfYears = 1;

	private int prevUser = 0;

	public int getNumberOfYears() {
		return numberOfYears;
	}

	public int getPrevUser() {
		return prevUser;
	}

	public void setPrevUser(int prevUser) {
		this.prevUser = prevUser;
	}

	public void setNumberOfYears(int numberOfYears) {
		this.numberOfYears = numberOfYears;
	}

	public int calcInterest(int principleAmount) {

		return ((principleAmount * INTEREST_RATE) / 100);
	}

	public int calcInterest(int principleAmount, int numberOfYears) {

		return ((principleAmount * INTEREST_RATE) / 100) * numberOfYears;
	}

	public int calcInterest(int principleAmount, boolean prevCust) {

		return ((((principleAmount * (INTEREST_RATE + 1)) / 100)));
	}

	public int calcInterest(int principleAmount, boolean prevCust,
			int numberOfYears) {

		return ((((principleAmount * (INTEREST_RATE + 1)) / 100) * numberOfYears));
	}

}
